from flask import Flask
#导入数据库
from flask_sqlalchemy import SQLAlchemy
#导入扩张迁移数据库
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand


#导入配置文件中的字典
from config import config
app = Flask(__name__)
#使用配置
app.config.from_object(config['development'])


manage= Manager(app)

Migrate(app,manage)
@app.route('/')
def hello_world():
    return 'Hello World!s'


if __name__ == '__main__':
    # app.run()
    manage.run()